package com.youlin.service;

import com.youlin.dto.*;
import com.youlin.dto.req.AddAdminReqDto;
import com.youlin.dto.res.AdminResDto;
import com.youlin.dto.req.EditAdminReqDto;
import com.youlin.entities.BygAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetailsService;
import java.util.List;

public interface BygAdminService extends IService<BygAdmin>, UserDetailsService {

    PageDataResDto<List<AdminResDto>> findAllAdmins(Integer unitId, Integer roleId, PageInfo pageInfo);

    BaseResDto<Status, String> updPwd(Integer adminId, String oldPwd, String newPwd);

    BaseDataResDto<String> getCaptchaBase64();

    BaseResDto<Status, String> validateCaptcha(String code);

    BaseResDto<Status, String> saveAdmin(EditAdminReqDto data);

    BaseResDto<Status, String> editAdmin(EditAdminReqDto data);

    BaseResDto<Status, String> upDownAdmin(Integer adminId);

    BaseResDto<Status, String> checkAdmin(Integer adminId);

    BaseResDto<Status, String> sendCode(String name, String tel);

}
